<?php

class mbti_class extends AWS_MODEL
{
	public function data()
	{
		$list = array(array('name'=>'张三','id'=>1),array('name'=>'李四','id'=>2));

		return $list;

	}
  
  	public function get_users()
    {
      	$sheet = $this->query_all("SELECT * FROM `aws_users_mbti` WHERE 1");
      	return $sheet;
    }

	public function get_users_info()
    {
        foreach($this->query_all("SELECT uid FROM `aws_users_mbti`") AS $key => $val)
        {
           $user_list[$val['uid']] = $val['uid'];
        }
      	$number = array(1,3,5,7,9);
        $user = $this->model('account')->get_user_info_by_uids($user_list);
        return $user;
    }
  
  	public function delete_result_by_uid($uid)
    {
        $this->query("DELETE FROM `aws_users_mbti` WHERE uid =" . strval($uid));
    }
}